Iran's foreign ministry said it had "the right and duty to defend itself against external aggression".